package com.tiandao.mofang.core;

import java.awt.*;

public class RobotSingleton {

    private static Robot robot = null;

    public static Robot getInstance(){
        if(robot == null){
            try {
                return new Robot();
            } catch (AWTException e) {
                e.printStackTrace();
            }
        }
        return robot;
    }

}
